﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="EmployeeDinnerSrhForm.aspx.cs" Inherits="App_Input_EeployeeDinnerSrhForm"
    Title="职员订餐" %>

<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table border="0" class="table_border_line">
        <tr>
            <td align="left">

                <script language="javascript" type="text/javascript">
                (new TitleBar('MemberBar', ' 检索条件')).showBar();
                </script>

            </td>
        </tr>
    </table>
    <cc1:ComValidator ID="ComValidator1" runat="server" CheckItems-Capacity="32" Visible="false">
        <cc1:CheckDateAttribute Code="E0034" ControlToValidator="txtDate">
            <cc1:ComAbsParamsAttribute Parameter="订餐日期" />
        </cc1:CheckDateAttribute>
    </cc1:ComValidator>
    <table border="0" class="table_border_line">
        <tr>
            <td style="width: 21%; height: 35px">
            </td>
            <td style="width: 91px; height: 35px">
                职员编号：</td>
            <td style="height: 35px">
                <asp:TextBox ID="txtEmpId" runat="server" MaxLength="4" Width="55px"></asp:TextBox>
                <asp:TextBox ID="txtEmpName" runat="server" Width="87px" BackColor="#E0E0E0" BorderColor="#E0E0E0"
                    ForeColor="Black" contentEditable="false"></asp:TextBox>
                <a href="#" onclick="javascript:popupEmployeeSearch('<%=txtEmpId.ClientID%>', '<%=txtEmpName.ClientID %>' );">
                    <img id="searchImg" runat="server" src="../../images/search.jpg" border="0" />
                </a>
            </td>
        </tr>
        <tr>
            <td style="width: 21%; height: 35px">
            </td>
            <td style="width: 91px; height: 35px">
                订餐日期：</td>
            <td style="height: 35px">
                <asp:TextBox ID="txtDate" runat="server" onfocus="new Calendar().show(this);" Width="105px"
                    MaxLength="10"></asp:TextBox></td>
        </tr>
        <tr style="display: none;">
            <td style="width: 21%; height: 35px;">
            </td>
            <td style="height: 35px; width: 91px;">
                送餐时间：</td>
            <td style="height: 35px">
                <asp:TextBox ID="txtSendDate" runat="server" onfocus="new Calendar().show(this);"
                    Width="105px" MaxLength="10"></asp:TextBox>
                <asp:DropDownList ID="dropHour" runat="server">
                </asp:DropDownList>
                点
                <asp:DropDownList ID="dropMin" runat="server">
                </asp:DropDownList>
                分～<asp:TextBox ID="txtSendDateTo" runat="server" onfocus="new Calendar().show(this);"
                    Width="105px" MaxLength="10"></asp:TextBox>
                <asp:DropDownList ID="dropHourTo" runat="server">
                </asp:DropDownList>
                点
                <asp:DropDownList ID="dropMinTo" runat="server">
                </asp:DropDownList>
                分</td>
        </tr>
        <tr>
            <td style="height: 43px" align="center" colspan="3" valign="bottom">
                <asp:Button ID="btnSearch" runat="server" CssClass="button" OnClick="btnSearch_Click"
                    Text="检 索" Width="75px" />
                &nbsp;
                <asp:Button ID="btnNew" runat="server" Text="订 餐" CssClass="button" Width="75px"
                    OnClick="btnNew_Click" /></td>
        </tr>
    </table>
    <table border="0" class="table_border_line">
        <tr>
            <td align="left" style="height: 15px">

                <script language="javascript" type="text/javascript">
                (new TitleBar('MemberBar', ' 职员订餐')).showBar();
                </script>

            </td>
        </tr>
    </table>
    <table border="0" class="table_border_line">
        <tr>
            <td>
                <asp:GridView ID="GridView1" runat="server" CssClass="GridView_table" DataKeyNames="DinnerId"
                    AutoGenerateColumns="False" OnRowEditing="GridView1_OnRowEditing" OnRowDataBound="GridView1_RowDataBound"
                    Width="100%" BorderWidth="0px" AllowPaging="True">
                    <Columns>
                        <asp:BoundField HeaderText="编号">
                            <ItemStyle CssClass="GridView_item_center" Width="10%" />
                            <HeaderStyle CssClass="GridView_head_grayblue" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="职员编号" DataField="EmployeeId">
                            <ItemStyle CssClass="GridView_item_center" Width="10%" />
                            <HeaderStyle CssClass="GridView_head_grayblue" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="订餐职员" DataField="NameC">
                            <ItemStyle CssClass="GridView_item_center" Width="10%" />
                            <HeaderStyle CssClass="GridView_head_grayblue" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="价格" DataField="Price" DataFormatString="{0:N}" HtmlEncode="False">
                            <ItemStyle CssClass="GridView_item_center" Width="25%" />
                            <HeaderStyle CssClass="GridView_head_grayblue" />
                        </asp:BoundField>
                        <asp:CommandField HeaderText="详细" ShowEditButton="True" ButtonType="Image" EditImageUrl="~/images/info.gif">
                            <HeaderStyle CssClass="GridView_head_grayblue" Width="10%" />
                            <ItemStyle CssClass="GridView_item_center" />
                        </asp:CommandField>
                    </Columns>
                    <PagerStyle HorizontalAlign="Right" VerticalAlign="Middle" />
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
